function onLoad() {
	var link = document.getElementById("lnk");
	activate(link);
}
function select(i) {
	if (i==null) {
		i = 1;
	}
	var l_tab = document.getElementById("l_tab_c");
	var links = l_tab.getElementsByTagName("a");
	activate(links[i]);
}

function activate(link) {
	var row = link.parentNode.parentNode;
	var table = row.parentNode.parentNode;
	var rows = table.getElementsByTagName("tr");
	var row_index = row.rowIndex;
	
	for (var i=0; i<rows.length; i++) {
		var row_ = table.rows[i];
		var link_ = row_.getElementsByTagName("a")[0];
		var divs = link_.getElementsByTagName("div");
	
		divs[0].className = "l_tab_tl_";
		divs[1].className = "l_tab_bl_";
		
		if (i==row_index) {
			divs[0].className = "l_tab_tl";
			divs[1].className = "l_tab_bl";
		}
	}
		
		var row_ = table.parentNode.parentNode;		
		var table_ = row_.cells[1].getElementsByTagName("table")[0];		
		for (var i=0; i<table_.rows.length; i++) {
			table_.rows[i].style.display = "none";
		}
		table_.rows[row_index].style.display = "";
		table_.rows[table_.rows.length - 1].style.display = "";
		link.focus();
}